<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			function upd(){
				var _uid=uid.value;
				var xhr=new XMLHttpRequest();
				xhr.open("PUT",`/pro/v1/update`,true);
				xhr.onreadystatechange=function(){
					if(xhr.readyState==4&&xhr.status==200){
						var r=xhr.responseText;
						d1.innerHTML=r;
					}
				}
				xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded")
				var formdata=`uname=${uname.value}&upwd=${upwd.value}&email=${email.value}&phone=${phone.value}&user_name=${user_name.value}&gender=${gender.value}`;
				xhr.send();
			}
			
		</script>
	</head>
	<body>
		<input type="text" id="uname"><br>
		<input type="text" id="upwd"><br>
		<input type="text" id="email"><br>
		<input type="text" id="phone"><br>
		<input type="text" id="user_name"><br>
		<input type="text" id="gender"><br>
		<button onclick="upd()">修改</button>
		<div id="d1"></div>
	</body>
</html>
